<?php 

namespace app\common\validate\ywUser;

use think\Validate;

class UserDispatchWork extends Validate 
{ 
    protected $rule = [
        'uid' => 'require',
        'old_department_position_id' => 'require',
        'old_work_number' => 'require',
    ];

    protected $message = [
        'uid.require' => '请输入用户ID',
        'old_department_position_id.require' => '请输入旧部门ID',
        'old_work_number.require' => '请输入旧工号',
    ];

    protected $scene = [
        'edit' => ['uid','dispatch_work_type','admin_name','examine_admin_name','old_department_position_id','old_work_number','id'],
        'add' => ['uid','dispatch_work_type','admin_name','examine_admin_name','old_department_position_id','old_work_number'],
    ];

} 
